import { createApp } from 'vue';
import { createPinia } from 'pinia'
import ElementPlus from 'element-plus'
import VueDraggableResizable from 'vue-draggable-resizable'
import 'element-plus/dist/index.css'
import App from './App.vue';
import './assets/global.less';
import components from './components/global';
import Router from './router/index';

const app = createApp(App)
const pinia = createPinia()
app.config.productionTip = false

// components
for (const i in components) {
  app.component(i, components[i])
}

app.component('vue-draggable-resizable', VueDraggableResizable)

app.use(pinia).use(Router).use(ElementPlus).mount('#app')
